package example.hello_security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID = -11769495006645807L;
    /**
     * PK
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 账户或者电话
     */
    private String phone;
    /**
     * 密码
     */
    private String password;
}
